package entity

import "gorm.io/gorm"

// User 用户
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(255);not null"`
	Nickname string `gorm:"type:varchar(255);not null"`
	Password string `gorm:"type:varchar(255);not null"`
	Number   string `gorm:"type:varchar(255);not null"`
	Phone    string `gorm:"type:varchar(255);not null"`

	NurseID     uint `gorm:"type=int;not null"`
	NursingHome NursingHome

	PositionID uint `gorm:"type=int;not null"`
	Position   Position

	EducationID uint `gorm:"type=int;not null"`
	Education   Education

	RoleID uint `gorm:"type=int;not null"`
	Role   Role
}
